﻿<UserControl x:Class="ChristianMoser.WpfInspector.UserInterface.ResourcesView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:l="clr-namespace:ChristianMoser.WpfInspector.UserInterface.Controls">
    <Grid >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="Auto"  />
            <RowDefinition Height="*"  />
        </Grid.RowDefinitions>
        <l:UpdateTriggerControl UpdateTrigger="{Binding UpdateTrigger}"  />
        <l:SearchTextBox Text="{Binding Filter, UpdateSourceTrigger=PropertyChanged}" Margin="4" />
        <ListView ItemsSource="{Binding Resources}" Grid.Row="2" >
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Name" Width="200" DisplayMemberBinding="{Binding Name}" />
                    <GridViewColumn Header="Value" Width="200">
                        <GridViewColumn.CellTemplate>
                            <DataTemplate>
                                <ContentPresenter Content="{Binding Value}" />
                            </DataTemplate>
                        </GridViewColumn.CellTemplate>
                    </GridViewColumn>
                </GridView>
            </ListView.View>
        </ListView>
    </Grid>
</UserControl>
